<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<style>
.ui-widget,.ui-widget .ui-widget {
	font-size: 11px !important;
}
</style>

	<title>Cadastro de Receitas</title>
	<link rel="stylesheet" type="text/css" href="css/estilos.css" />
</h:head>
<body>
	<h:form>
		<p:panel id="pnUsuario" style="border: none;">
			<h2>Cadastro de Usuarios</h2>
			<h:panelGrid columns="1" cellpadding="2" style="border: 2px;">
				<h:outputText value="Código" />
				<p:inputText id="idUsuario" value="" maxlength="4"
					readonly="true" size="7" disabled="true" />
			</h:panelGrid>

			<h:panelGrid columns="3" cellpadding="2">
				<h:outputText value="Codigo " />
				<h:outputText value="Funcionario *" />
				<h:outputText value="" />

				<p:inputText id="idFuncionario" value="" maxlength="40" size="7" />
				<p:inputText id="funcionario" value="" size="67" disabled="true" />

				<p:commandButton id="selesctFuncionario" icon="ui-icon-search"
					title="Selecionar Funcionario"
					onclick="dConsultaFuncionario.show() " update="">
					<f:setPropertyActionListener value="" target="" />
				</p:commandButton>
			</h:panelGrid>
			<br></br>

			<h:panelGrid columns="4" cellpadding="2">
				<h:outputText value="Login" />
				<h:outputText value="Senha" />
				<h:outputText value="Conf. Senha" />
				<h:outputText value="Perfil" />

				<p:inputText id="login" value="" maxlength="40" />
				<p:password id="senha" value="" feedback="true" />
				<p:password id="Confsenha" value="" maxlength="40" feedback="true" />
				<p:selectOneMenu id="perfil" label="Selecione">
					<f:selectItem itemLabel="Selecione" />
				</p:selectOneMenu>

			</h:panelGrid>
			<br></br>
			<p:separator />

			<h:panelGrid columns="3" style="float: right;">
				<p:commandButton value="Salvar" action="#{beanCliente.save}" />
				<p:commandButton value="Limpar" type="reset" />
				<p:commandButton value="Voltar" onclick="history.back()" />
			</h:panelGrid>

			<h:panelGrid columns="4" cellpadding="2" style="float: left;">
				<h:outputText value="Cadastro" />
				<p:inputMask id="dataC" value="" mask="99/99/9999" size="7"
					disabled="true" />


				<h:outputText value="Ultima Alter. " />

				<p:inputMask id="dataAlt" value="" mask="99/99/9999" size="7"
					disabled="true" />
			</h:panelGrid>

		</p:panel>

	</h:form>
	<p:dialog header="Consultar Funcionario"
		widgetVar="dConsultaFuncionario" id="consFuncionario"
		resizable="false">
		<ui:include src="/funcionario/pConsultaFuncionario.xhtml"></ui:include>
	</p:dialog>
</body>
</html>